package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StudentFamilyMemberMapper;
import com.ruoyi.system.domain.StudentFamilyMember;
import com.ruoyi.system.service.IStudentFamilyMemberService;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2023-11-11
 */
@Service
public class StudentFamilyMemberServiceImpl implements IStudentFamilyMemberService
{
    @Autowired
    private StudentFamilyMemberMapper studentFamilyMemberMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public StudentFamilyMember selectStudentFamilyMemberById(Long id)
    {
        return studentFamilyMemberMapper.selectStudentFamilyMemberById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param studentFamilyMember 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<StudentFamilyMember> selectStudentFamilyMemberList(StudentFamilyMember studentFamilyMember)
    {
        return studentFamilyMemberMapper.selectStudentFamilyMemberList(studentFamilyMember);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param studentFamilyMember 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertStudentFamilyMember(StudentFamilyMember studentFamilyMember)
    {
        studentFamilyMember.setCreateTime(DateUtils.getNowDate());
        return studentFamilyMemberMapper.insertStudentFamilyMember(studentFamilyMember);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param studentFamilyMember 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateStudentFamilyMember(StudentFamilyMember studentFamilyMember)
    {
        studentFamilyMember.setUpdateTime(DateUtils.getNowDate());
        return studentFamilyMemberMapper.updateStudentFamilyMember(studentFamilyMember);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteStudentFamilyMemberByIds(Long[] ids)
    {
        return studentFamilyMemberMapper.deleteStudentFamilyMemberByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteStudentFamilyMemberById(Long id)
    {
        return studentFamilyMemberMapper.deleteStudentFamilyMemberById(id);
    }
}
